<?php


namespace app\validate;


use think\Validate;

class IncomeValidate extends Validate
{
    protected $rule =   [
        'money'                     => 'require',
        'use'                       => 'require',
        'department'                => 'require',
    ];

    protected $message  =   [
        'title.require'             => '标题不要为空',
        'use.require'               => '请选择用途',
        'department.require'        => '请选择部门',
    ];
}